projects = report literature_review buaathesis

flag =
.PHONY: all clean count ${projects}

all: ${projects}

${projects}:
	${MAKE} -C $@ ${flag}
	cp $@/master.pdf report.pdf

clean: 
	${MAKE} -C report clean
	${MAKE} -C literature_review clean
	${MAKE} -C buaathesis clean

# count source files
count:
	@find . -iname '*.tex' -exec cat {} \; | wc -l
